import React from "react";
import { DatePicker as AntdDatePicker } from "../../antd/index";
import { commonProps } from ".";

// type
import { AntdRangePickerProps } from ".";

export type Props = AntdRangePickerProps & {};

function RangePicker(props: Props) {
  const RangePickerProps = {
    ...commonProps,
    separator: <div>-</div>,
    ...props,
  };
  return <AntdDatePicker.RangePicker {...RangePickerProps} />;
}

export default RangePicker;
